package com.bcx.crm.spring.dynamic;

/**
 * Created by ys on 2018/1/4
 * ThreadLocal类型的ContextHolder
 */
public class CustomerContextHolder {
    private static final ThreadLocal<String> contextHolder =new ThreadLocal<>();
    public static void setCustomerType(String customerType){
        contextHolder.set(customerType);
    }
    public static void getCustomerType(String customerType){
        contextHolder.get();
    }
    public static void clearCustomerType(String customerType){
        contextHolder.remove();
    }

}
